﻿using Dapper.DBContext.Schema;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Guoc.BigMall.Application.ViewObject
{
    public class SaleOrderItemVo
    {
        public int SaleOrderId { get; set; }
        /// <summary>
        /// SKU编码
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// SKU编码
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// SKU编码
        /// </summary>
        public string ProductCode { get; set; }

        /// <summary>
        /// 商品销售价
        /// </summary>
        public decimal SalePrice { get; set; }
        /// <summary>
        /// 实际支付价格
        /// </summary>
        public decimal RealPrice { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }

        public decimal Amount
        {
            get
            {
                return RealPrice * Quantity;
            }
        }
    }
}
